home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl37 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  5.1 KB  |  96 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <!DOCTYPE xsl:stylesheet [
  5.     <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
  6. ]>
  7. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  8. &externalScript;
  9.     <xsl:template match="/">
  10.         <HTML>
  11.             <xsl:apply-templates/>
  12.         </HTML>
  13.     </xsl:template>
  14.     <xsl:template match="photos">
  15.         <xsl:apply-templates/>
  16.     </xsl:template>
  17.     <xsl:template match="album">
  18.         <xsl:apply-templates select="imagelist"/>
  19.     </xsl:template>
  20.     <xsl:template match="imagelist">
  21.         <xsl:apply-templates select="imageinfo"/>
  22.     </xsl:template>
  23.     <xsl:template match="imageinfo">
  24.         <xsl:element name="ixfile">
  25.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  26.             <head>
  27.                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  28.             </head>
  29.             <BODY bgcolor="#ccccff" link="#000000" alink="#000000" vlink="#000000">
  30.             <table border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff" align="center" width="10">
  31. <tr><!-- row 1 -->
  32.    <td background=""><img name="tl" src="graphics/tl.gif" width="7" height="7" border="0"/></td>
  33.     <td height="7" background="graphics/tc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
  34.    <td background=""><img name="tr" src="graphics/tr.gif" width="7" height="7" border="0"/></td>
  35.   </tr>
  36.   <tr><!-- row 2 -->
  37.     <td background="graphics/l.gif" width="7"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
  38.     <td background=""><div align="center"><IMG border="1"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  39.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  40.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  41.     <td width="7" background="graphics/r.gif"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
  42.   </tr>
  43.   <tr><!-- row 3 -->
  44.    <td background=""><img name="bl" src="graphics/bl.gif" width="7" height="7" border="0"/></td>
  45.     <td height="7" background="graphics/bc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
  46.    <td background=""><img name="br" src="graphics/br.gif" width="7" height="7" border="0"/></td>
  47.    </tr>
  48. <tr><td colspan="3" valign="top"><table align="center" bgcolor="ccccff" width="100%"><tr><td width="100" valign="top"><div align="center"><xsl:apply-templates select="previous"/></div></td><td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><a href="index.htm">Thumbnails</a></font><br kludge=""/><font face="Arial, Helvetica, sans-serif" size="2"><br kludge=""/>
  49.                                            <b><xsl:value-of select="title"/></b></font>
  50.                                         <font face="Arial, Helvetica, sans-serif" size="2">                                                                                <xsl:apply-templates select="description">
  51.                                             <!-- recursively apply this template to them -->
  52.                                             <xsl:template>
  53.                                                 <xsl:copy>
  54.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  55.                                                 </xsl:copy>
  56.                                             </xsl:template>
  57.                                         </xsl:apply-templates>
  58.                             </font></div><br kludge=""/><div align="center"><xsl:choose>
  59.                             <xsl:when test="audio_info/@fname[. != '']">
  60.                                 <div align="center">
  61.                                         <xsl:apply-templates select="audio_info"/></div>
  62.                                 </xsl:when>
  63.                                 <xsl:otherwise>
  64.                                     <img border="0" src="graphics/mdshim.gif"/>
  65.                                 </xsl:otherwise>
  66.                             </xsl:choose>
  67.                             <xsl:choose>
  68.                                 <xsl:when test="movie_info/@fname[. != '']">
  69.                                     <div align="center">
  70.                                         <xsl:apply-templates select="movie_info"/></div>
  71.                                 </xsl:when>
  72.                                 <xsl:otherwise>
  73.                                 <img border="0" src="graphics/mdshim.gif"/>
  74.                                 </xsl:otherwise>
  75.                                 </xsl:choose></div></td><td width="100" valign="top"><div align="center"><xsl:apply-templates select="next"/></div></td></tr></table></td></tr></table>
  76.             
  77. </BODY>
  78. </xsl:element>
  79. </xsl:template>
  80.  
  81.     <xsl:template match="previous">
  82.         <xsl:value-of/>
  83.         <xsl:choose>
  84.             <xsl:when match="previous[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><font face="Arial, Helvetica, sans-serif" size="2">Back</font></A></xsl:when><xsl:otherwise>Back</xsl:otherwise>
  85.         </xsl:choose>
  86.     </xsl:template>
  87.     <xsl:template match="next">
  88.         <xsl:value-of/>
  89.         <xsl:choose>
  90.             <xsl:when match="next[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>Next</A></xsl:when><xsl:otherwise><font face="Arial, Helvetica, sans-serif" size="2">Next</font></xsl:otherwise></xsl:choose></xsl:template>
  91.  
  92.     <xsl:template match="audio_info"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img border="0" src="graphics/sound.gif" width="24" height="28"/></A></xsl:template>
  93.     <xsl:template match="movie_info"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img border="0" src="graphics/movie.gif" width="25" height="28"/></A></xsl:template>
  94.  
  95. </xsl:stylesheet>
  96.